<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=640px,user-scalable=no,target-densitydpi=device-dpi" />
		<link rel="stylesheet" href="../css/css.css" type="text/css" />
		<script type="text/javascript" src='../js/jquery.min.js'></script>
		<script type="text/javascript" src='../js/main_in.js'></script>
		<script type="text/javascript" src='../js/common.js'></script>
		<script type="text/javascript" src='../js/jquery.qrcode.min.js'></script>
		<title></title>
		<script>
			function dosearch(){
				$.ajax({
					type:"get",
					url:"",
					async:true
				});
			}
		</script>
	</head>
	<body>
		<div class="app_head pre1" onclick="clicked('./card_recharge.html')">
            <div class="app_prev pr1"><img src="../img/arrow.png" /></div>
            <div class="app_head_text">历史充值记录</div>
            <div class="app_prev"></div>
       </div>
        <div class="clear:both;"></div>
        <?php foreach ((array) $rs as $k => $v) { ?>
            <div style="width:100%;min-height:180px;border-bottom:1px solid black;">
                <div class="left px18" style="height:150px;width:150px;background:gray;margin-top:10px;margin-left:10px;">
                    <img src="<?php echo $v['url'] ?>" width="150" height="150"/>
                </div>           
                <div class="left" style="margin-left:20px;margin-top:10px;min-height:150px;">
                    <div style="height:auto;width:430px;"><span style="color:red;padding-left:3px;padding-right:5px;">申请金额:</span><?php echo $v['money']; ?></div>  
                    <div style="height:auto;width:430px;">
                        申请时间:   <?php
                        $c = (array) $v['createtime'];
                        $time = str_replace(".000000", "", $c['date']);
                        echo $time;
                        ?>
                    </div>
                    <div style="height:auto;width:430px;">
                        状态:<?php echo ($v['type'] == 2) ? '<span style="color:green;">审核通过,充值已确认</span>' : ( ($v['type'] == 1) ? '待审核' : '<span style="color:red;">审核失败,未充值</span>') ?>
                    </div>
                    <div style="height:auto;width:430px;">
                            <?php if ($v['type'] == '0') { ?>
                            审核时间:<span style="color:red;">   <?php
                                $c = @(array) $v['checktime'];
                                $time = @str_replace(".000000", "", $c['date']);
                                echo $time;
                                ?></span>  
                            <?php } elseif ($v['type'] == 2) { ?>
                            审核时间:<span style="color:green;">   <?php
                                $c = @(array) $v['checktime'];
                                $time = @str_replace(".000000", "", $c['date']);
                                echo $time;
                                ?></span>  
                        <?php } ?>
                    </div>
                    <div style="height:auto;width:430px;">
                            <?php if ($v['type'] == '0') { ?>
                            审核意见:<span style="color:red;">   <?php
                            echo mb_convert_encoding($v['checkremark'], 'utf-8', 'gbk');
                            ?></span>  
                            <?php } elseif ($v['type'] == 2) { ?>
                            审核意见:<span style="color:green;">   <?php
                            echo mb_convert_encoding($v['checkremark'], 'utf-8', 'gbk');
                            ?></span>  
    <?php } ?>
                    </div>
                </div>            
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>
	</body>
</html>
